#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define OFFSETOF(s_type,m_name)   (int)&(((s_type*)0)->m_name)
struct s
{
	char a;
	char b;
	int c;
};
int main()
{
	printf("%d\n",OFFSETOF(struct s,a));
	printf("%d\n",OFFSETOF(struct s,b));
	printf("%d\n",OFFSETOF(struct s,c));
	return 0;
}